<script lang="ts" setup>
let content = window.server.Version;
</script>

<template>
  <el-container class="LeftTop_container">
    <div class="LeftTop_water_drip_box">
      <div class="LeftTop_water_drip_content">
        <div></div>
        <div>
          <button class="_buttonTitle">
            <el-text class="_title" size="large" type="primary"
              >分词试用版</el-text
            >
          </button>
        </div>
        <button class="button" data-text="Awesome">
          <span class="actual-text">&nbsp;{{ content }}&nbsp;</span>
          <span aria-hidden="true" class="hover-text"
            >&nbsp;{{ content }}&nbsp;</span
          >
        </button>
      </div>
    </div>
  </el-container>
</template>

<style scoped lang="scss">
.LeftTop_container {
  display: flex;
  height: 100%;
  width: 100%;
  background-color: #545c64;
  /*左上,右上,右下,左下*/
  border-radius: 32px 4px 4px 4px;
  border: 2px solid var(--el-card-border-color);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
}

/* ----------------------------- */
.LeftTop_water_drip_box {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 10px auto;
  width: 90%;
}

.LeftTop_water_drip_box .LeftTop_water_drip_content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 4px 3px;
  box-shadow: inset 4px 4px 4px rgba(0, 0, 0, 0.05),
    5px 7px 4px rgba(0, 0, 0, 0.05), 5px 6px 6px rgba(0, 0, 0, 0.05),
    inset -4px -4px 5px rgba(126, 134, 140, 0.9); /*rgba(84,94,100,.9)*/
}

.LeftTop_water_drip_box .LeftTop_water_drip_content {
  transition: 0.5s;
  border-radius: 52% 48% 33% 67% / 38% 45% 55% 62%;
}

/*鼠标悬停变圆形事件*/
.LeftTop_water_drip_box .LeftTop_water_drip_content:hover {
  border-radius: 20%;
}

.LeftTop_water_drip_box .LeftTop_water_drip_content::before {
  content: "";
  position: absolute;
  top: 10%; /*50px*/
  left: 19%; /*85px*/
  width: 16%; /*35px*/
  height: 17%; /*35px*/
  border-radius: 50%;
  background: #7e868ce5;
  opacity: 0.4;
}

.LeftTop_water_drip_box .LeftTop_water_drip_content::after {
  content: "";
  position: absolute;
  top: 29%; /*90px*/
  left: 37%; /*110px*/
  width: 7%; /*15px*/
  height: 6%; /*15px*/
  border-radius: 50%;
  background: #7e868ce5;
  opacity: 0.4;
}

/*这有啥用？ 圆角阴影？ 看不出来啊*/
.LeftTop_water_drip_box .LeftTop_water_drip_content div {
  position: relative;
  width: 80%; /*225px*/
  /*
  border-radius: 25px;
  box-shadow: inset 2px 4px 6px rgba(0,0,0,.1),
              inset -2px -4px 6px rgba(126, 134, 140,1),
                    7px 7px 6px rgba(0,0,0,.05),
                    7px 6px 7px rgba(0,0,0,.025);*/
}

.LeftTop_water_drip_box .LeftTop_water_drip_content div:first-child {
  display: flex;
  justify-content: center;
  align-content: center;
  height: 1%;
}
.LeftTop_water_drip_box .LeftTop_water_drip_content div:nth-child(2) {
  display: flex;
  justify-content: center;
  align-content: center;
  height: auto;
}
.LeftTop_water_drip_box .LeftTop_water_drip_content ._title {
  --fs-size: 2em;
  font-size: var(--fs-size);
}

.LeftTop_water_drip_box .LeftTop_water_drip_content .button {
  margin: 0;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
}

.LeftTop_water_drip_box .LeftTop_water_drip_content .button {
  --border-right: 6px;
  --text-stroke-color: rgba(255, 255, 255, 0.6);
  --animation-color: #37ff8b;
  letter-spacing: 3px;
  text-decoration: none;

  font-family: "Arial", sans-serif;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}

.LeftTop_water_drip_box .LeftTop_water_drip_content .button .hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: 0.5s;
  -webkit-text-stroke: 1px var(--animation-color);
}

/* hover */
.LeftTop_water_drip_box .LeftTop_water_drip_content .button:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 23px var(--animation-color));
}

.LeftTop_water_drip_box .LeftTop_water_drip_content ._buttonTitle {
  font-size: 18px;
  /*color: #e1e1e1;*/
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  text-transform: uppercase;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
}

.LeftTop_water_drip_box .LeftTop_water_drip_content ._buttonTitle:focus,
.LeftTop_water_drip_box .LeftTop_water_drip_content ._buttonTitle:hover {
  color: #fff;
}

.LeftTop_water_drip_box .LeftTop_water_drip_content ._buttonTitle:focus:after,
.LeftTop_water_drip_box .LeftTop_water_drip_content ._buttonTitle:hover:after {
  width: 100%;
  left: 0%;
}

.LeftTop_water_drip_box .LeftTop_water_drip_content ._buttonTitle:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}
</style>
